<?php

class Flexical_Service_System
{
	public $cache_duration;

	public function __construct()
	{
		$this->cache_duration = 0;
	}

	public function get_plugin_name()
	{
		return 'flexical';
	}

	public function build_dir ( $elements )
	{
		return implode( DIRECTORY_SEPARATOR, $elements );
	}

	public function get_plugin_dir()
	{
		return $this->build_dir( array( WP_PLUGIN_DIR, $this->get_plugin_name() ) );
	}

	public function get_plugin_url()
	{
		return $this->build_dir( array( WP_PLUGIN_URL, $this->get_plugin_name() ) );
	}

	public function get_tmp_dir()
	{
		return $this->build_dir( array( $this->get_plugin_dir(), 'tmp' ) );
	}

	public function get_css_dir()
	{
		return $this->build_dir( array( $this->get_plugin_dir(), 'css' ) );
	}

	public function get_javascript_dir()
	{
		return $this->build_dir( array( $this->get_plugin_dir(), 'js' ) );
	}

	public function get_include_dir()
	{
		return $this->build_dir( array( $this->get_plugin_dir(), 'include' ) );
	}

	public function get_cache_dir()
	{
		return $this->build_dir( array( $this->get_plugin_dir(), 'cache' ) );
	}

	public function get_cache_duration()
	{
		return $this->cache_duration;
	}

	public function get_css_url()
	{
		return $this->build_dir( array( $this->get_plugin_url(), 'css' ) );
	}
}

?>
